package com.qdc.datacenters.domain.vo.chatmsg;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author danmo
 * @date 2024-03-06 11:00
 **/
@Schema
@Data
public class ChatContactMsgVo {

    /**
     * 主键id
     */

    @Schema(description = "主键id")
    private Long id;

    /**
     * 消息id
     */
    @Schema(description = "消息id")
    private String msgId;

    /**
     * 发送人id
     */
    @Schema(description = "发送人id")
    private String fromId;

    @Schema(description = "发送人名称")
    private String formName;

    @Schema(description = "发送人性别 0-未知 1-男性 2-女性")
    private Integer fromSex;

    @Schema(description = "发送人头像")
    private String fromAvatar;


    @Schema(description = "群聊id")
    private String roomId;

    @Schema(description = "群聊名称")
    private String roomName;

    /**
     * 消息类型
     */
    @Schema(description = "消息类型")
    private String action;


    /**
     * 消息类型(如：文本，图片)
     */
    @Schema(description = "消息类型(如：文本，图片)")
    private String msgType;


    /**
     * 发送时间
     */
    @Schema(description = "发送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date msgTime;


    /**
     * 消息标识
     */
    @Schema(description = "消息标识")
    private Long seq;


    @Schema(description = "消息来源 3-客户 4-系统 5-员工")
    private Integer origin;
    /**
     * 文本消息
     */
    @Schema(description = "文本消息")
    private String msgText;


    @Schema(description = "素材信息")
    private List<ChatMsgAttachmentVo> attachment;

}
